import { defineStore } from "pinia";
import { ref, computed } from "vue";
import { listCourse } from "@/api/coursemanagement/course";
export const useStageStore = defineStore("stage", () => {
  const stageList = ref([]);
  const getStageList = async () => {
    const res = await listCourse();
    stageList.value = res.data;
  };
  onMounted(() => {
    getStageList();
  });
  return {
    stageList,
    getStageList,
  };
});
